<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%--
  Created by IntelliJ IDEA.
  User: zheng
  Date: 2018/7/7
  Time: 21:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <jsp:include page="/WEB-INF/views/commons/common.jsp"/>
    <script src="/static/js/system/clientDevelopmentPlan.js"></script>
    <title>Title</title>
</head>
<body>
    <table id="dg"></table>
<!--工具栏-->
<div id="tb">
    <shiro:hasAnyRoles name="SUPER , MGR CK">

    <a class="easyui-linkbutton" title="My Dialog"
       data-options="iconCls:'icon-clientdo',resizable:true,modal:true,plain:true" id="saveRecord" data-cmd="saveRecord">客户操作
    </a>
    </shiro:hasAnyRoles>
    <a class="easyui-linkbutton" title="My Dialog"
       data-options="iconCls:'icon-edituser',resizable:true,modal:true,plain:true" data-cmd="edit">修改
    </a>
    <a class="easyui-linkbutton" title="My Dialog"
       data-options="iconCls:'icon-refreshlist',resizable:true,modal:true,plain:true" data-cmd="reload">刷新
    </a>
    <br>
    <!--//高级查询-->
    <input class="easyui-textbox" type="text" name="keyword" id="keyword" prompt="输入创建人姓名/客户姓名查询" data-options="width:'180'"/>
    <input class="easyui-combobox" type="text" name="queryForschedule" id="queryForschedule" data-options="
                    data:[{'label':'-1' ,'value':'全部' },{'label':'0' ,'value':'失败' },{'label':'1' ,'value':'开发中' },{'label':'2' ,'value':'成功' }],
                    valueField:'label', textField:'value', panelHeight:'auto'" prompt="选择开发进度查询" >
   修改时间:
    <input class="easyui-datebox" type="text" name="beginDate" id="beginDate"/>~
    <input class="easyui-datebox" type="text" name="endDate" id="endDate"/>

    <a class="easyui-linkbutton" data-options="iconCls:'icon-searchclient',plain:true" data-cmd="query">查询</a>
</div>


<!--输入信息用 dialog-->
<div id="dd">
    <form id="ff" method="post" style="border-collapse: separate;padding: 60px 0px 0px 60px;">
        <input type="hidden" id="clientDevelopmentPlanId" name="id">
        <table align="center" style="border-collapse: separate;border-spacing: 10px;">
            <tr>
                <td><input class="easyui-textbox" name="client.name" data-options="iconCls:'icon-man',label:'客户姓名',width:'380',disabled:true" readonly="true"></td>
            </tr>
            <tr>
                <td><input type="text" class="easyui-textbox" name="subject" labelPosition="top" data-options="label:'开发主题',width:'550',height:'60'" ></input></td>
            </tr>
            <tr>
                <td><input type="text" class="easyui-textbox" name="project" labelPosition="top" data-options="label:'详细计划',width:'550',multiline:true,height:'150'"></input></td>
            </tr>
            <tr>
                <td><input type="text" class="easyui-textbox" name="comments" labelPosition="top" data-options="label:'其他事项',width:'550',multiline:true,height:'150'"></input></td>
            </tr>
            <tr>
                <td>
                    <input id="schedule" class="easyui-combobox" type="text" name="schedule" data-options="label:'开发进度',width:'200',
                    data:[{'label':'0' ,'value':'失败' },{'label':'1' ,'value':'开发中' },{'label':'2' ,'value':'成功' }],
                    valueField:'label', textField:'value', panelHeight:'auto',onChange:function(newValue, oldValue){
                        if(newValue==0){
                            $('#schedulePs').text('当开发状态为失败时,管理员可能会确认此计划失败,并且删除此开发计划!请谨慎提交!')
                        }
                        if(newValue==1){
                            $('#schedulePs').text('当开发状态为开发中时,管理员只能进行驳回计划的操作!当进度有变化时,请及时提交!')
                        }
                        if(newValue==2){
                            $('#schedulePs').text('此次提交后,管理员会再次确认此计划成功,将此客户转为正式客户并删除此开发计划!请谨慎提交!')
                        }

                    }"><span id="schedulePs"  style="color:#F00"></span>
                </td>
            </tr>

        </table>
    </form>
</div>


<!--保存/取消按钮-->
<div id="bb">
    <a href="#" class="easyui-linkbutton" iconCls='icon-save8' data-cmd="save">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls='icon-cancel8'data-cmd="cancel">关闭</a>
</div>

</body>
</html>
